package org.tlipoca.smuserhistory.client;

import io.swagger.v3.oas.annotations.Operation;
import org.genntii.smcommon.result.Result;
import org.genntii.smdomain.entity.SteamStore;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;

@FeignClient("sm-steamStore")
public interface SteamStoreClient {

    @GetMapping("/steam_store/exists/{appid}")
    Result<Boolean> steamStoreExists(@PathVariable Integer appid);


    @GetMapping("/steam_store/listBatch")
    Result<ArrayList<SteamStore>> getSteamStoreBatchByIds(@RequestParam("ids") ArrayList<Integer> steamStoreIds);
}
